Handle character positions in UTF-8 strings correctly. (#133315, Theppitak
authorMatthias Clasen <maclas@gmx.de>
Fri, 6 Feb 2004 21:47:37 +0000 (21:47 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 6 Feb 2004 21:47:37 +0000 (21:47 +0000)
Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character
positions in UTF-8 strings correctly.  (#133315, Theppitak
Karoonboonyanan)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcombo.c

index 4e7d64d2f7f090a0e20965425e6983a0fe5682c7..a41fa5200aeb80a64594be6c9ba389751c74618c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
+       positions in UTF-8 strings correctly.  (#133315, Theppitak 
+       Karoonboonyanan)
+
 2004-02-06  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtktoolbar.c (show_menu): Cleanup using
index 4e7d64d2f7f090a0e20965425e6983a0fe5682c7..a41fa5200aeb80a64594be6c9ba389751c74618c 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
+       positions in UTF-8 strings correctly.  (#133315, Theppitak 
+       Karoonboonyanan)
+
 2004-02-06  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtktoolbar.c (show_menu): Cleanup using
index 4e7d64d2f7f090a0e20965425e6983a0fe5682c7..a41fa5200aeb80a64594be6c9ba389751c74618c 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
+       positions in UTF-8 strings correctly.  (#133315, Theppitak 
+       Karoonboonyanan)
+
 2004-02-06  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtktoolbar.c (show_menu): Cleanup using
index 4e7d64d2f7f090a0e20965425e6983a0fe5682c7..a41fa5200aeb80a64594be6c9ba389751c74618c 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
+       positions in UTF-8 strings correctly.  (#133315, Theppitak 
+       Karoonboonyanan)
+
 2004-02-06  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtktoolbar.c (show_menu): Cleanup using
index 4e7d64d2f7f090a0e20965425e6983a0fe5682c7..a41fa5200aeb80a64594be6c9ba389751c74618c 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
+       positions in UTF-8 strings correctly.  (#133315, Theppitak 
+       Karoonboonyanan)
+
 2004-02-06  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtktoolbar.c (show_menu): Cleanup using
index bf7f96c3682668c2e02df2431544804eba0b42a8..51bb60283296899b62f3b63af4243664c6d82a06 100644 (file)
@@ -227,7 +227,7 @@ gtk_combo_entry_key_press (GtkEntry * entry, GdkEventKey * event, GtkCombo * com
 
       if (nprefix && strlen (nprefix) > strlen (prefix)) 
        {
-         gtk_editable_insert_text (editable, nprefix + pos
+         gtk_editable_insert_text (editable, g_utf8_offset_to_pointer (nprefix, pos)
                                    strlen (nprefix) - strlen (prefix), &pos);
          gtk_editable_set_position (editable, pos);
        }